package cn.ulc.store.entity.order;
import lombok.Data;
import cn.ulc.store.entity.base.BaseModel;
import org.beetl.sql.core.annotatoin.Table;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/*
* 
* gen by Jin 2019-05-29
*/
@Data
@Table(name="orders")
public class Order extends BaseModel {

	/*
	来源是否是购物车
	*/
	private Boolean isCart;
	private Integer goodsRows;
	private BigDecimal count;
	/*
	押金
	*/
	private BigDecimal depositAmount;
	/*
	运费
	*/
	private BigDecimal freightAmount;
	/*
	商品金额
	*/
	private BigDecimal goodsAmount;
	/*
	关联会员
	*/
	private Long memberId;
	/*
	订单号
	*/
	private String orderNo;
	/*
	实付金额
	*/
	private BigDecimal payAmount;
	/*
	支付ID
	*/
	private String prepayId;
	/*
	收货地址
	*/
	private String receiveAddress;
	/*
	收货电话
	*/
	private String receivePhone;
	/*
	收货方式
	*/
	private String receiveType;
	/*
	收货人
	*/
	private String receiver;
	private String remark;
	/*
	抹零
	*/
	private BigDecimal removeAmount;
	/*
	送单人
	*/
	private Long staffId;
	/*
	订单状态
	*/
	private String status;
	private Long wxUserId;
	/*
	支付时间
	*/
	private Date paymentTime;
	/*
	收货/提货时间
	*/
	private Date receiveTime;

	private Long userCouponId;
  //退款使用
  private String transactionId;
  private String refundNo;
  private String refundId;
  private BigDecimal refundedAmount;
	private Date verifyAt;
	//临时字段
	private List<OrderItem> orderItem;

}
